/**
 * Copyright &copy; 2013-2015 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.modules.gen.entity;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 生成表连接Entity
 * @author ThinkGem
 * @version 2014-9-9
 */
public class GenTableJoin extends DataEntity<GenTableJoin> {
	
	private static final long serialVersionUID = 1L;
	private String tableName;		// 当前表
	private String tablePk;			// 当前表主键
	private String joinType; 		// 连接类型（join/left join/right join)
	private String joinTableName;	// 连接的表
	private String joinTablePk;		// 连接表主键
	private String returnField; 	// 连接表返回字段
	private String isChildTable;	// 连接的表是否是主表

	public GenTableJoin() {
		super();
	}

	public GenTableJoin(String id){
		super(id);
	}
	
	public GenTableJoin(GenTable genTable){
		this.tableName = genTable.getTableName();
	}
	
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTablePk() {
		return tablePk;
	}

	public void setTablePk(String tablePk) {
		this.tablePk = tablePk;
	}

	public String getJoinType() {
		return joinType;
	}

	public void setJoinType(String joinType) {
		this.joinType = joinType;
	}

	public String getJoinTableName() {
		return joinTableName;
	}

	public void setJoinTableName(String joinTableName) {
		this.joinTableName = joinTableName;
	}

	public String getJoinTablePk() {
		return joinTablePk;
	}

	public void setJoinTablePk(String joinTablePk) {
		this.joinTablePk = joinTablePk;
	}

	public String getReturnField() {
		return returnField;
	}

	public void setReturnField(String returnField) {
		this.returnField = returnField;
	}

	public String getIsChildTable() {
		return isChildTable;
	}

	public void setIsChildTable(String isChildTable) {
		this.isChildTable = isChildTable;
	}
	
}


